﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;

namespace Axis.Web.Views.TagCloud
{
    public partial class CloundTagDetail : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string tagID = "0";
            if (Page.RouteData.Values["ID"] != null)
                tagID = Page.RouteData.Values["ID"] as string;
            if (Request.QueryString["ID"] != null)
                tagID = Request.QueryString["ID"].ToString();
            StringBuilder scriptServerConfig = new StringBuilder();
            scriptServerConfig.AppendFormat("var tagID='{0}';\n", tagID);
            Page.ClientScript.RegisterClientScriptBlock(Page.GetType(), "TagsNewsList",
                                  scriptServerConfig.ToString(), true);
        }
    }
}